home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-26 | 1.3 KB | 59 lines | [TEXT/MPS ] |
- {********************************************
- ; File: Scrap.p
- ;
- ;
- ; Copyright Apple Computer, Inc. 1986-91
- ; All Rights Reserved
- ;
- ********************************************}
-
- UNIT SCRAP;
- INTERFACE
- USES TYPES;
- CONST
-
- { Error Codes }
- badScrapType = $1610; { No scrap of this type. }
-
- { Scrap Types }
- textScrap = $0000;
- picScrap = $0001;
- sampledSoundScrap = $0002;
- teStyleScrap = $0064;
- iconScrap = $4945;
- maskScrap = $8001;
- colorTableScrap = $8002;
- resourceRefScrap = $8003;
-
- TYPE
-
- ScrapInfo = RECORD
- scrapType: integer;
- scrapSize: longint;
- scrapHandle: Handle;
- END;
- ScrapInfoPtr = ^ScrapInfo;
-
- PROCEDURE GetScrap ( destHandle:Handle; scrapType:Integer) ;
- FUNCTION GetScrapCount : Integer ;
- FUNCTION GetScrapHandle ( scrapType:Integer) : handle ;
- FUNCTION GetScrapPath : Ptr ;
- FUNCTION GetScrapSize ( scrapType:Integer) : Longint ;
- FUNCTION GetScrapState : Integer ;
- PROCEDURE LoadScrap;
- PROCEDURE PutScrap ( numBytes:Longint; scrapType:Integer; srcPtr:Ptr) ;
- PROCEDURE ScrapBootInit;
- PROCEDURE ScrapReset;
- PROCEDURE ScrapShutDown;
- PROCEDURE ScrapStartUp;
- FUNCTION ScrapStatus : Boolean ;
- FUNCTION ScrapVersion : Integer ;
- PROCEDURE SetScrapPath ( path:Str255) ;
- PROCEDURE UnloadScrap;
- PROCEDURE ZeroScrap;
-
- PROCEDURE GetIndScrap(index:integer; var info:ScrapInfo);
-
- IMPLEMENTATION
- END.
-